package com.ruoyi.bom.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bom.mapper.ErpBomChangeMapper;
import com.ruoyi.bom.domain.ErpBomChange;
import com.ruoyi.bom.service.IErpBomChangeService;

/**
 * BOM变更表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-22
 */
@Service
public class ErpBomChangeServiceImpl implements IErpBomChangeService 
{
    @Autowired
    private ErpBomChangeMapper erpBomChangeMapper;

    /**
     * 查询BOM变更表
     * 
     * @param documentNo BOM变更表主键
     * @return BOM变更表
     */
    @Override
    public ErpBomChange selectErpBomChangeByDocumentNo(Long documentNo)
    {
        return erpBomChangeMapper.selectErpBomChangeByDocumentNo(documentNo);
    }

    /**
     * 查询BOM变更表列表
     * 
     * @param erpBomChange BOM变更表
     * @return BOM变更表
     */
    @Override
    public List<ErpBomChange> selectErpBomChangeList(ErpBomChange erpBomChange)
    {
        return erpBomChangeMapper.selectErpBomChangeList(erpBomChange);
    }

    /**
     * 新增BOM变更表
     * 
     * @param erpBomChange BOM变更表
     * @return 结果
     */
    @Override
    public int insertErpBomChange(ErpBomChange erpBomChange)
    {
        return erpBomChangeMapper.insertErpBomChange(erpBomChange);
    }

    /**
     * 修改BOM变更表
     * 
     * @param erpBomChange BOM变更表
     * @return 结果
     */
    @Override
    public int updateErpBomChange(ErpBomChange erpBomChange)
    {
        return erpBomChangeMapper.updateErpBomChange(erpBomChange);
    }

    /**
     * 批量删除BOM变更表
     * 
     * @param documentNos 需要删除的BOM变更表主键
     * @return 结果
     */
    @Override
    public int deleteErpBomChangeByDocumentNos(Long[] documentNos)
    {
        return erpBomChangeMapper.deleteErpBomChangeByDocumentNos(documentNos);
    }

    /**
     * 删除BOM变更表信息
     * 
     * @param documentNo BOM变更表主键
     * @return 结果
     */
    @Override
    public int deleteErpBomChangeByDocumentNo(Long documentNo)
    {
        return erpBomChangeMapper.deleteErpBomChangeByDocumentNo(documentNo);
    }
}
